package phoenix.mob_android.test_objects.data_providers;

import phoenix.core.PhoenixManager;
import phoenix.core.base.extensions.TestBaseExt;
import phoenix.core.data_models.UserProfileDataModel;
import phoenix.core.data_models.UserProfileDataModel.PaymentDetails;

public class PaymentDataProviders extends TestBaseExt
{
	public PaymentDataProviders(PhoenixManager p_phoenix)
	{
		super(p_phoenix);
	}

	public Object[][] paymentPackageData()
	{
		Integer membershipPackage = randomizer().getRandomInt(1, 4);

		UserProfileDataModel profileModel = new UserProfileDataModel(manager);
		PaymentDetails paymentDataUnSuccessful = profileModel.new PaymentDetails();
		PaymentDetails paymentDataSuccessful = profileModel.new PaymentDetails();
		paymentDataUnSuccessful.fillUpIncorrectCard();
		paymentDataSuccessful.fillUpCorrectCard();

		return new Object[][] {
				{ membershipPackage, paymentDataSuccessful, true } };

	}

	public Object[][] featuresData()
	{
		Integer membershipPackage = randomizer().getRandomInt(1, 3);

		return new Object[][] {
				{ membershipPackage } };

	}

}
